package com.wang.service;

import com.wang.mapper.UserMapper;
import com.wang.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service

public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public List<User> getUser() {
        return userMapper.getUser();
    }

    @Override
    public User getUserInfo(String name, String password) {
        return userMapper.getUserInfo(name,password);
    }

    @Override
    public int insertUser(User user) {
        return userMapper.insertUser(user);
    }

    @Override
    public User getUserOne(String name) {
        return userMapper.getUserOne(name);
    }
}
